#!/user/bin/python3
from PIL import Image

needle = Image.open("needle.png")
background = Image.open("background.png")
background.paste(needle, (0,147), needle.split()[3])
background.save("1.png")
for (i, angle) in enumerate(list(range(0,-90, -6))+list(range(-90, -270, -6))):
    print(angle)
    background.paste(needle.rotate(angle))

background.save("xxxx.png")

# for i in range(0,321):
    # img.rotate(90, expand=False, center=(i,i)).save("watchface"+str(i)+".png")
